﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks; 
using SysHelper;
using MODEL;
using MarketplaceWebService;

namespace SysController
{
    internal static class ServiceController 
    {
        /// <summary>
        /// 1.0 报告服务
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static MarketplaceWebService.MarketplaceWebService ReportsMarketplaceWebService(UP_GetMwsModel_Result model)
        {
            MarketplaceWebService.MarketplaceWebService service = null;
            MarketplaceWebServiceConfig config = new MarketplaceWebServiceConfig();
            config.ServiceURL = model.MarketplaceWebServiceURL; 
            service = new MarketplaceWebServiceClient(model.AccessKey, model.AccessSecret, "Valeb", "V1.0", config); 
            return service;
        }

        public static void GetService(ServiceTypeEnum type)
        {
            switch (type)
            {
                case ServiceTypeEnum.MarketplaceWebService:
                    //return MarketplaceWebService.MarketplaceWebService; 
                    break;
                default:
                    break;
            }
        }

       
    }
}
